import request from '@/utils/request'
import { ApiModulesRoutes } from '@/consts.js'

/**
 * 下载文件
 * @param {String} data.pageNo
 * @param {String} data.pageSize
 */

export function apiUploadImage(data) {
  return request({
    url: `${ApiModulesRoutes.BASE}/file/uploadFile`,
    method: 'POST',
    data,
    headers: { 'Content-Type': 'multipart/form-data' },
  })
}
